<?php
class Home extends Controller{
    
		function Home(){
			parent::Controller();	
		}		
        
        /**
         * Load home page 
         * @author tien.nguyen
         */
		function index(){	
            $this->load->model('Articles_model', null, true);
            $this->load->model('Pictures_model', null, true);
            
            $listNewsInHome = $this->Articles_model->getInListId(array(13, 14, 12));
            
            $data['articles'] = $this->Articles_model->getHotNewsHome();
            $data['articles_main'] = $this->Articles_model->getHomeNewsByInList($listNewsInHome);
            $data['pictures'] = $this->Pictures_model->getListPicturesHome();
            $data['meta'] = array(
            		array('name'=>'description', 'content'=>'Trang chủ'),
            		array('name'=>'keywords', 'content'=>'Mẹ, bé, giành cho mẹ, giành cho bé, ngày hội cho mẹ')
            );
			$this->load->view('home/index', $data);
		}
		
	}
/* End of file */